package cn.tedu.property_management_system.service;
import cn.tedu.property_management_system.entity.Complaint;
import cn.tedu.property_management_system.entity.ComplaintType;
import cn.tedu.property_management_system.entity.DTO.ComplaintAddNewDTO;
import cn.tedu.property_management_system.entity.VO.ComplaintVO;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IComplaintService {
    PageInfo<ComplaintVO> loadCompliant(Integer pageNum, Integer PageSize);

    void deleteCompliant(int id);

    void handleCompliant(int id, int userId);

    List<ComplaintType> loadCompliantType();

    List<ComplaintVO> screenCompliant(Integer comId, Integer status);

    void bathDelete(Integer[] deleteComplaintArr);

    void bathUpDate(Complaint complaint);

    void bathOutput(HttpServletResponse response);

    void insert(ComplaintAddNewDTO complaintAddNewDTO);

    List<ComplaintVO> loadPersonalCompliant();

    void initCache();

}
